#include"process.h"
void test1()
{
  //进度条的实现
  int count = 0;
  char* less = "|/-\\";
  int len = strlen(less);
  char arr[Max];
  memset(arr,'\0',sizeof(arr));
  while(count<= Max-1)
  {

    printf("[%-100s][%d%%][%c]\r",arr,count,less[count%len]);
    arr[count] = fuhao;
    fflush(stdout);
    count++;
    usleep(100000);
  } 
  printf("\n");
}
